# a = int(input('输入一个数字'))
# if 0 < a < 50:
#     print('a在0和50之间')
# else:
#     print('a不在0和50之间')
# a = [1,1,1,'aa', 'ww','ss']
# a = {
#     'ww':'11',
#     '2w':'12',
#     'ew':'13',
#     'tw':'1t',
# }
# for i in a:
#     print(a[i])


# m = [1, 2, [3]]
# n = m[:]
# print(id(n))
# print(id(m))
# n[1] = 4
# n[2][0] = 5
# print(m)


# m = [1, 2, [3, 4], [5, [6, 7]]]
# print('m:', id(m))
# print([id(i) for i in m])
# n = m
# print('n:', id(n))
# print([id(i) for i in n])
# print(n is m)
# print(n[0] is m[0])
# print(n[2] is m[2])
# n[0] = -1
# print(m)
# n[2][1] = -1
# print(m)

# from copy import copy
# m = [1, 2, [3, 4], [5, [6, 7]]]
# print('m:', id(m))
# print([id(i) for i in m])
# n = copy(m)
# print('n:', id(n))
# print([id(i) for i in n])
# print(n is m)
# print(n[0] is m[0])
# print(n[2] is m[2])
# n[0] = -1
# print(m)
# n[2][1] = -1
# print(m)

# from copy import deepcopy
# m = [1, 2, [3, 4], [5, [6, 7]]]
# print('m:', id(m))
# print([id(i) for i in m])
# n = deepcopy(m)
# print('n:', id(n))
# print([id(i) for i in n])
# print(n is m)
# print(n[0] is m[0])
# print(n[2] is m[2])
# n[0] = -1
# print(m)
# n[2][1] = -1
# print(m)

# import copy
#
# a = [1, 2, 3, 4, ['a', 'b', 'c']]
# b = a # 赋值
# c = copy.copy(a) # 浅拷贝
# d = copy.deepcopy(a) # 深拷贝
# print(a)
# print(b)
# print(c)
# print(d)

# a = 1
# b = a
# print(id(a))
# print(id(b))




#
# def out():
#     ## global关键字作用
#     global en
#     en = 1
#     ## 调用other可以打印en，去掉global会报错。
#     other()
#     print(out.__globals__)
# def other():
#     print(en)
# out()



# 冒泡排序

# def bubbleSort(arr):
#     n = len(arr)
#
#     # 遍历所有数组元素
#     for i in range(n):
#
#         # Last i elements are already in place
#         for j in range(0, n - i - 1):
#
#             if arr[j] > arr[j + 1]:
#                 arr[j], arr[j + 1] = arr[j + 1], arr[j]
#
#
# arr = [64, 34, 25, 12, 22, 11, 90]
#
# bubbleSort(arr)
#
# print("排序后的数组:")
# for i in range(len(arr)):
#     print("%d" % arr[i]),


# b = [0 for i in range(10)]  # 也可以b = [0]*10
# print(b)
# b.append(1)
# print(b)
# for i in range(10):
#     pass  # 赋值语句

# a = [1,4,6,7,33,7,8]
# # a.append(777)
#
# a.pop()
# print(a)

# arr = [
#     {'name': '孙悟空', 'age': 18},
#     {'name': '猪八戒', 'age': 28},
#     {'name': '红孩儿', 'age': 8},
#     {'name': '蜘蛛精', 'age': 16},
#     {'name': '二郎神', 'age': 38}
#        ]
#
# def get_adult(arr):
#     new_arr = []
#     for i in arr:
#         if i['age'] >= 18:
#             new_arr.append(i)
#     return new_arr
#
# # get_adult(arr)
# print(get_adult(arr))
# import copy
# a = [1,4,33,6,8,22,99,9,9]
# q = copy.copy(a)
# w = copy.deepcopy(a)
# print(id(a))
# print(id(q))
# print(id(w))
# print(a is q)
# print(a is w)
# print(q is w)

# 数组去重
# arr = [1,1,1,1,1,1,1, 3, 5, 3, 2, 1]
# arr2 = []
# for i in arr:
#     print(i)
#     if i not in arr2:
#         arr2.append(i)
# print(arr2)


# arr = [1, 2]
# arr2 = [3,4]
# arr.extend(arr2)
#
# print(arr)
# arr = [1,11,1,1,1,1,1, 3, 5, 3, 2, 1]
# arr = ['aa','ca','z','b']
# arr.sort()
# print(arr)


# import random
# for i in range(10):
#     print(random.randint(10,20))

arr = ['a', 'b']
str = ''.join(arr)
print(str)
print(type(str))

